package bookManager;

import bookManager.operations.*;

import java.util.Scanner;

public class Admin extends User {
    public Admin() {
        Operations = new IOperation[]{
                new ExitOperation(),
                new DisplayOperation(),
                new FindOperation(),
                new AddOperation(),
                new DeleteOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println("=================================");
        System.out.println("1.查看书籍列表");
        System.out.println("2.查找书籍");
        System.out.println("3.新增书籍");
        System.out.println("4.删除书籍");
        System.out.println("0.退出");
        System.out.println("=================================");
        System.out.println("请输入您的选择：");

        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;

    }
}
